package cn.com.connext.scrm.repository.master;


import cn.com.connext.scrm.domain.master.DwaGetCategoryCount;
import cn.com.connext.scrm.domain.master.DwaGetCoupon;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface DwaGetCategoryCountRepository extends JpaRepository<DwaGetCategoryCount, Integer>, JpaSpecificationExecutor {

    @Query(value = "select distinct union_id from dwa_get_category_count", nativeQuery = true)
    List<String> findUserCount();
}
